
<!-- 用户评论 -->
<div class="full-screen">
    <header>
    <div class="a-bar">
        <a href="javascript:history.back()" class="a-back">
          <i class="arr left"></i>
          返回
        </a>
        <div class="a-name">
          商品咨询
        </div>
    </div>
    </header>
    <div class="">
        <div class="pt-comment">
            <{include file='wap/product/tab/ask/init.html'}>
            <div class="comment-content"><{include file='wap/product/tab/ask/content.html'}></div>
        </div>
    </div>
</div>

<script>

$('.comment-content').on('click', '.pageview a', function(e){
    e.preventDefault();
    var url = $(this).attr('href');
    if(url) $(this).parents('.list').load(url);
})
.on('change', '.pageview select', function(e){
    var url = this.options[this.selectedIndex].value;
    if(url) $(this).parents('.list').load(url);
});

<{if $comments.gask_type}>
$('#J_choose_type span').bind('click',function(e){
    if($(this).attr('data-value') && $(this).attr('data-value') != 'true'){
      $.post($(this).attr('data-value'),function(re){
        $('.list').eq($(this).index()).html(re).addClass('active');
      }.bind(this));
      $(this).attr('data-value','true');
    }
    $(this).add($('.list').eq($(this).index())).addClass('active').siblings('.active').removeClass('active');
});
<{/if}>

</script>
